import request from '@/utils/request'

// 查询定时提醒列表
export function listHealthReminders(query) {
  return request({
    url: '/reminders/HealthReminders/list',
    method: 'get',
    params: query
  })
}

// 查询定时提醒详细
export function getHealthReminders(id) {
  return request({
    url: '/reminders/HealthReminders/' + id,
    method: 'get'
  })
}

// 新增定时提醒
export function addHealthReminders(data) {
  return request({
    url: '/reminders/HealthReminders',
    method: 'post',
    data: data
  })
}

// 修改定时提醒
export function updateHealthReminders(data) {
  return request({
    url: '/reminders/HealthReminders',
    method: 'put',
    data: data
  })
}

// 删除定时提醒
export function delHealthReminders(id) {
  return request({
    url: '/reminders/HealthReminders/' + id,
    method: 'delete'
  })
}
